import request from '@/utils/request';
import { other } from './prefix';

const videoTypeManage = {
  // 查询视频类型列表
  getVideoType(params) {
    return request.get(other + '/video_type', { params });
  },
  // 创建视频类型
  setVideoType(params) {
    return request.post(other + '/video_type', params);
  },
  // 更新视频类型
  updVideoType(id, params) {
    return request.post(other + '/video_type/' + id, params);
  },
  // 删除视频类型
  delVideoType(id) {
    return request.delete(other + '/video_type/' + id);
  },
};

export default videoTypeManage;
